ID
- the identifier type of this property's entity (node or edge IdType
)K
- the type of this property's entity (node or edge, PgxEntity
)V
- the type of this property (see PropertyType
)public abstract class Property<ID extends Comparable<ID>,K extends PgxEntity<ID>,V extends Comparable<V>> extends PgxManagedObject
PgxGraph
.Modifier and Type | Method and Description |
---|---|
Property<ID,K,V> |
clone()
Blocking version of
cloneAsync() . |
Property<ID,K,V> |
clone(String newPropertyName)
Blocking version of
cloneAsync() . |
PgxFuture<? extends Property<ID,K,V>> |
cloneAsync()
Create a copy of this property.
Convenience method for cloneAsync(String) passing newPropertyName as null |
PgxFuture<? extends Property<ID,K,V>> |
cloneAsync(String newPropertyName)
Create a copy of this property.
|
void |
fill(V value)
Blocking version of
#fillAsync() . |
PgxFuture<Void> |
fillAsync(V value)
Fill this property with a given value.
|
V |
get(ID id)
Blocking version of
#getAsync() . |
V |
get(K key)
Blocking version of
#getAsync() . |
PgxFuture<V> |
getAsync(ID id)
Gets the property value.
|
PgxFuture<V> |
getAsync(K key)
Gets the property value.
|
Iterable<Map.Entry<K,V>> |
getBottomKValues(int k)
Blocking version of
#getBottomKValuesAsync() . |
PgxFuture<Iterable<Map.Entry<K,V>>> |
getBottomKValuesAsync(int k)
Gets the bottom k vertex/edge value pairs according to their value.
|
EntityType |
getEntityType() |
PgxGraph |
getGraph() |
String |
getName() |
Iterable<Map.Entry<K,V>> |
getTopKValues(int k)
Blocking version of
#getTopKValuesAsync() . |
PgxFuture<Iterable<Map.Entry<K,V>>> |
getTopKValuesAsync(int k)
Gets the top k vertex/edge value pairs according to their value.
|
PropertyType |
getType()
Gets the PropertyType.
|
Iterable<Map.Entry<K,V>> |
getValues()
Blocking version of
getValuesAsync() . |
PgxFuture<Iterable<Map.Entry<K,V>>> |
getValuesAsync()
Gets the values.
|
boolean |
isTransient() |
void |
set(K key, V value)
Blocking version of
#setAsync() . |
PgxFuture<Void> |
setAsync(K key, V value) |
void |
setValues(Map<K,V> values)
Blocking version of
#setValuesAsync() . |
void |
setValues(Map<K,V> values, V defaultValue)
Blocking version of
#setValuesAsync() . |
PgxFuture<Void> |
setValuesAsync(Map<K,V> values) |
PgxFuture<Void> |
setValuesAsync(Map<K,V> values, V defaultValue)
Sets the values of a property.
|
long |
size()
Blocking version of
sizeAsync() . |
PgxFuture<Long> |
sizeAsync()
Size.
|
String |
toString() |
equals, hashCode
close, destroy, destroyAsync
@Generated(value="src/python/synchronize.py") public Property<ID,K,V> clone()
cloneAsync()
. Calls cloneAsync()
and waits for the returned PgxFuture
to complete.clone
in class Object
InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public Property<ID,K,V> clone(String newPropertyName) throws ExecutionException, InterruptedException
cloneAsync()
. Calls cloneAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<? extends Property<ID,K,V>> cloneAsync()
cloneAsync(String)
passing newPropertyName as null
public PgxFuture<? extends Property<ID,K,V>> cloneAsync(String newPropertyName)
newPropertyName
- name of copy to be created. If null
, guaranteed unique name will be generated.@Generated(value="src/python/synchronize.py") public void fill(V value) throws ExecutionException, InterruptedException
#fillAsync()
. Calls #fillAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Void> fillAsync(V value)
value
- the value@Generated(value="src/python/synchronize.py") public V get(ID id) throws ExecutionException, InterruptedException
#getAsync()
. Calls #getAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public V get(K key) throws ExecutionException, InterruptedException
#getAsync()
. Calls #getAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<V> getAsync(ID id)
id
- the id of the propertypublic PgxFuture<V> getAsync(K key)
key
- the key of the property@Generated(value="src/python/synchronize.py") public Iterable<Map.Entry<K,V>> getBottomKValues(int k) throws ExecutionException, InterruptedException
#getBottomKValuesAsync()
. Calls #getBottomKValuesAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Iterable<Map.Entry<K,V>>> getBottomKValuesAsync(int k)
k
- how many bottom values to retrieve, must be in the range between 0 and number of nodes/edges (inclusive)public EntityType getEntityType()
public PgxGraph getGraph()
public String getName()
getName
in class PgxManagedObject
@Generated(value="src/python/synchronize.py") public Iterable<Map.Entry<K,V>> getTopKValues(int k) throws ExecutionException, InterruptedException
#getTopKValuesAsync()
. Calls #getTopKValuesAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Iterable<Map.Entry<K,V>>> getTopKValuesAsync(int k)
k
- how many top values to retrieve, must be in the range between 0 and number of nodes/edges (inclusive)public PropertyType getType()
@Generated(value="src/python/synchronize.py") public Iterable<Map.Entry<K,V>> getValues() throws ExecutionException, InterruptedException
getValuesAsync()
. Calls getValuesAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Iterable<Map.Entry<K,V>>> getValuesAsync()
public boolean isTransient()
true
if this property is transient (session-bound, private), false
otherwise.@Generated(value="src/python/synchronize.py") public void set(K key, V value) throws ExecutionException, InterruptedException
#setAsync()
. Calls #setAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public void setValues(Map<K,V> values) throws ExecutionException, InterruptedException
#setValuesAsync()
. Calls #setValuesAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public void setValues(Map<K,V> values, V defaultValue) throws ExecutionException, InterruptedException
#setValuesAsync()
. Calls #setValuesAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Void> setValuesAsync(Map<K,V> values, V defaultValue)
values
- the values to setdefaultValue
- default value if one of the values fails to be put@Generated(value="src/python/synchronize.py") public long size() throws ExecutionException, InterruptedException
sizeAsync()
. Calls sizeAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public String toString()
toString
in class PgxManagedObject
Copyright © 2015. All rights reserved.